#ifndef UTIL_H
#define UTIL_H
#include <string>
using namespace std;
namespace fbxTool {
	class Util {
	public:
		/// <summary>
		/// 控制台支持中文字符
		/// </summary>
		static void InitConsole();

		/// <summary>
		/// 检查目录是否存在
		/// </summary>
		static bool DirectoryExists(const string& path);

		/// <summary>
		/// 创建目录
		/// </summary>
		static bool CreateDirectoryIfNotExist(const string& path);

		static string convertUTF16toUTF8(const wchar_t* source, unsigned sourceLength);
		static string convertUTF16toUTF8(const wstring& s);
		static string convertUTF16toUTF8(const wchar_t* s);
		static string convertStringFromCurrentCodePageToUTF8(const char* source, unsigned sourceLength);
		static string convertStringFromCurrentCodePageToUTF8(const string& s);
		static string EscapePath(const string& path);
	};
}
#endif // !UTIL_H